
    <div class="mt10">
        <label class="radio-inline">
            <input type="radio" name="newsRadio" id="newsRadio1" ng-model="newsStatus" value="1" checked> 上传新闻
        </label>
        <label class="radio-inline">
            <input type="radio" name="newsRadio" id="newsRadio2" ng-model="newsStatus" value="0"> 上传附件新闻
        </label>
    </div>

    <div ng-show="newsStatus==1">
        <form class="form-horizontal row" name="newsForm"  role="form" verify-scope="tipStyle: 0">
        <div class="row mt20">
            <div class="col-lg-6">
                <div class="input-group">
                    <span class="input-group-addon">新闻标题</span>
                    <input type="text" class="form-control" ng-verify ng-model="newsInfo.infoTitle"/>
                </div>
            </div>
            <div class="col-lg-6">
                <div class="input-group">
                    <span class="input-group-addon" style="padding:6px 19px">发布人</span>
                    <input type="text" class="form-control" ng-model="newsInfo.publisher" ng-verify />
                </div>
            </div>
        </div>
        <div class="row mt20">
            <div class="col-lg-6">
                <div class="input-group">
                    <span class="input-group-addon">发布时间</span>
                    <input def-laydate type="text" class="form-control" id="releaseTime"
                           ng-model="newsInfo.releaseTime" ng-verify/>
                </div>
            </div>
            <div class="col-lg-6">
                <div class="input-group">
                    <span class="input-group-addon">信息类别</span>
                    <select class="form-control" ng-model="newsInfo.infoType" ng-verify="option:0">
                        <option value="">类别</option>
                        <option value="1">信息</option>
                        <option value="2">公文</option>
                    </select>
                </div>
            </div>
        </div>
        <div class="row mt20">
            <div class="col-lg-6">
                <div class="input-group">
                    <div class="btn btn-default" ngf-select="selectImage($file)"
                         ngf-change="imgSelected($files, $file, $event, $rejectedFiles)" ngf-pattern="'image/*'"
                         ngf-multiple="false" ng-model="upImg.file">
                        <i class="fa fa-plus" style="margin-right:2px;"></i><span ng-bind="uploadText"></span>
                    </div>
                    <div ng-href="javascript:void(0)" ng-click="openUploadIconModal('imgcutModal','',upImg.file || upImg.urlImg)" class="btn btn-default ml10">
                        <i class="fa fa-cut" style="margin-right:2px;"></i>剪切图片
                    </div>
                </div>
                <div>
                    <img ngf-thumbnail="upImg.cutimg || upImg.file || upImg.urlImg" class="img-responsive"
                         style="width:200px; height: 200px; max-width:500px; margin-top:10px;"/>
                </div>
            </div>

        </div>


        <div class="row mt10">
            <div class="col-lg-12">
                <h5>新闻内容</h5>
                <div text-angular ng-model="newsInfo.content" ng-verify></div>
                <div class="mt20">
                    <button type="button"  ng-verify="control:'newsForm',disabled:true"
                            class="btn btnCustom btn-lg btnLg mr10" ng-click="previewSubmit()">预览
                    </button>
                    <button type="reset" class="btn btnHui btn-lg btnLg">重置</button>
                </div>
            </div>

        </div>
        </form>
    </div>

    <div ng-show="newsStatus==0">
        <form class="form-horizontal row" name="attachForm" role="form" verify-scope="tipStyle: 0">
        <div class="row mt20">
            <div class="col-lg-6">
                <div class="input-group">
                    <span class="input-group-addon">新闻标题</span>
                    <input type="text" class="form-control" ng-model="fileInfo.infoTitle"/>
                </div>
            </div>
            <div class="col-lg-6">
                <div class="input-group">
                    <span class="input-group-addon" style="padding:6px 19px">发布人</span>
                    <input type="text" class="form-control" ng-model="fileInfo.publisher"/>
                </div>
            </div>
        </div>
        <div class="row mt20">
            <div class="col-lg-6">
                <div class="input-group">
                    <span class="input-group-addon">发布时间</span>
                    <input def-laydate type="text" class="form-control" id="filereleaseTime"
                           ng-model="fileInfo.releaseTime"/>
                </div>
            </div>
            <div class="col-lg-6">
                <div class="input-group">
                    <span class="input-group-addon">信息类别</span>
                    <select class="form-control" ng-model="fileInfo.infoType">
                        <option value="">类别</option>
                        <option value="1">信息</option>
                        <option value="2">公文</option>
                    </select>
                </div>
            </div>
        </div>
        <div class="row mt20">
            <div class="col-lg-6">
                <div class="input-group">
                    <span class="input-group-addon">附件地址</span>
                    <div class="row">
                        <div class="col-lg-8"><input type="text" id="fujian" class="form-control"
                                                     ng-model="fileInfo.file.name"/></div>
                        <div class="col-lg-4 pull-left">
                            <div class="row">
                                <div class="btn btn-default" ngf-select=""
                                     ngf-pattern="'*/*'" ngf-multiple="false" ng-model="fileInfo.file">
                                    <i class="fa fa-plus"></i>上传附件
                                </div>
                            </div>
                        </div>
                    </div>


                </div>
                <div class="row" ng-if="vm.showProgress">
                    <div class="col-lg-12 mt20"> <uib-progressbar value="val" type="success">{{progressPercentage}}%</uib-progressbar></div>
                </div>

                <div class="mt20">
                    <button type="button" ng-verify="disabled:false" ng-click="submitForm()"
                            class="btn btnCustom btn-lg btnLg mr10">发送
                    </button>
                    <button type="button" class="btn btnHui btn-lg btnLg">重置</button>
                </div>
            </div>

        </div>

        </form>
    </div>




